** Master dofile for "In Aid We Trust"

* Set directory to the location of the /Final/ (public release) folder.

	global directory "/Users/bbdaniels/Dropbox/WorldBank/Earthquake/Outputs/Trust/Public Release/"

* This analysis is dependent on the following publicly available adofiles:
	* xml_tab 	� package dm0037 from http://www.stata-journal.com/software/sj8-3
	* estadd 	� package st0085_2 from http://www.stata-journal.com/software/sj14-2
	* spmap		� package spmap from http://fmwww.bc.edu/RePEc/bocode/s

* This analysis is dependent on the following custom adofiles that are not publicly available. 
* Note that these adofiles may feature incomplete documentation and are not guaranteed for results outside of this analysis.

	qui do "$directory/dofiles/adofiles/xilabels/xilab.ado"
	qui do "$directory/dofiles/adofiles/referencecomparisons/reftab.ado"
	qui do "$directory/dofiles/adofiles/referencecomparisons/normdiff.ado"
	qui do "$directory/dofiles/adofiles/flowchart/flowchart.ado"
	qui do "$directory/dofiles/adofiles/summarystatistics/sumstats.ado"
	
* Global options

	global graph_opts title("") note(, justification(left) color(black) span pos(7)) title(, justification(left) color(black) span pos(11)) subtitle(, justification(left) color(black) span pos(11)) graphregion(color(white)) ylab(,angle(0) nogrid) ytit("") xtit(,placement(left) justification(left)) yscale(noline) xscale(noline) xsize(7) legend(region(lc(none) fc(none)))
	global comb_opts graphregion(color(white)) xsize(7) 
	global hist_opts ylab(, angle(0) axis(2)) yscale(off alt axis(2)) ytit(, axis(2)) ytit(, axis(1))  yscale(alt)
	global xpct `" 0 "0%" .25 "25%" .5 "50%" .75 "75%" 1 "100%" "'
	global numbering `""(1)" "(2)" "(3)" "(4)" "(5)" "(6)" "(7)" "(8)" "(9)" "(10)""'

* Dofiles for the complete analysis 
-
	version 13 // Required for Stata 14 users to replicate simulation results due to the implementation of the new random number generator.
	
	qui do "$directory/dofiles/tables.do"
	qui do "$directory/dofiles/figures.do"
	qui do "$directory/dofiles/tables_appendix.do"
	qui do "$directory/dofiles/figures_appendix.do"
	
* Have a lovely day!
	
